<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="webjars/jquery/3.6.4/jquery.min.js"></script>
  <link rel="stylesheet" href="webjars/bootstrap/5.2.3/css/bootstrap.min.css">

</head>
<body>
     <div class="container">
         <table class="table table-hover table-bordered">
              <tr>
                <th>编号</th>
                <th>姓名</th>
                <th>性别</th>
                <th>生日</th>
                <th>部门</th>
              </tr>
           <tr th:each="emp:${list}" th:object="${emp}">
              <td th:text="*{eid}"></td>
              <td th:text="*{name}"></td>
              <td th:text="*{sex}== 0 ? '男': '女' "></td>
              <td th:text="*{#dates.format(birthday,'yyyy-MM-dd')}"></td>
              <td th:text="*{dept.dname}"></td>

           </tr>
         </table>
     </div>
</body>
</html>
